package com.whfc.emp.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * @author sun_guodong
 * @description
 * @date 2020-05-26
 */
@Data
public class AppAttachDTO implements Serializable {

    @Size(max = 25, message = "文件名应小于25个字符")
    private String name;
    private String url;
    /**
     * 合同-有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date contractEndDate;

    /**
     * 社保-有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date healthEndDate;

    /**
     * 体检报告-有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date journeyEndDate;

    /**
     * 证书-有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date credEndDate;
}
